package com.yonder.testjvmmemory;

/**
 * 
 * 角色基础数据表 2017年8月29日
 * 
 */
public class Role_Base2 {
	/**
	 * 自增id，角色id
	 */
	private long id = 0;

	/**
	 * 账号id
	 */
	private long accountId;

	/**
	 * 昵称
	 */
	// @DBColumn(isIndex=true,len=32)
	private String nickname;

	/** 该玩家下所有可被击杀的低级人才数,可按位分成4个值,分别代表童生秀才举人进士,上限值进士 1.6万\举人3.2万\进士6.5万\秀才26万,低1位表示是否有人才被击杀 */
	private long lowTalentCnt;
	
	/**
	 * 银两
	 */
	private long money;

	/**
	 * 粮食
	 */
	private long food;

	/**
	 * 元宝
	 */
	private int gold;

	/**
	 * 士兵
	 */
	private long soldier;

	/**
	 * 功绩
	 */
	private long exp;

	/**
	 * 战鼓
	 */
	private int drum;
	
	/**
	 * 国号
	 */
	private int age;
	
	/**
	 * 名望
	 */
	private long fame;
	
	/**
	 * 默认头像
	 */
	private short defaultHeadId;
	
	/**
	 * 头像id
	 */
	private short headId;
	
	/**
	 * 默认服装id
	 */
	private short defaultClothId;

	/**
	 * 服装id
	 */
	private short clothId;

	/** 注册时间 */
	private int regTime;

	/**
	 * 最后一次登录时间
	 */
	private long lastLogin;

	/**
	 * 最后一次登出时间
	 */
	private long lastLogout;

//	/**
//	 * 今日膜拜榜单记录
//	 */
//	private byte worship;
//
//	/**
//	 * 膜拜膜拜榜单刷新时间
//	 */
//	private int worshipRefreshTime;
//	
//	/**
//	 * 人才晋升失败信息（按位表示）
//	 */
//	private byte promotionFailed;
//	
//	/**
//	 * 宫女晋升失败信息（按位表示）
//	 */
//	private byte maidPromotionFailed;
	
	/**
	 * 累计充值金额
	 */
	private int rmb;
	
	/**
	 * 玩家总国力
	 */
	private long[] powers = new long[4];
	
	/**
	 * 国力榜排行
	 */
	private short powerRanking = -2;
	
//	/**
//	 * 主线任务id
//	 */
//	private short mainTaskId;
//	
//	/**
//	 * 系统解锁，按位表示
//	 */
//	private long systemUnlockBit;
	
	/** 用户登陆的token */
	private int tokenHash;
	
	private long publicMailIndex;
	
//	/**
//	 * 子嗣送礼刷新时间
//	 */
//	private int giftsRefreshTime;
//	
//	/**
//	 * 领取子嗣送礼次数
//	 */
//	private int receiveGiftsTimes;
//	
//	/**
//	 * 红点提示刷新时间
//	 */
//	private int redTipsRefreshTimes;
//	
//	/**
//	 * 游戏引导信息
//	 */
//	private long gameGuideInfo;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getAccountId() {
		return accountId;
	}

	public void setAccountId(long accountId) {
		this.accountId = accountId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public long getLowTalentCnt() {
		return lowTalentCnt;
	}

	public void setLowTalentCnt(long lowTalentCnt) {
		this.lowTalentCnt = lowTalentCnt;
	}

	public long getMoney() {
		return money;
	}

	public void setMoney(long money) {
		this.money = money;
	}

	public long getFood() {
		return food;
	}

	public void setFood(long food) {
		this.food = food;
	}

	public int getGold() {
		return gold;
	}

	public void setGold(int gold) {
		this.gold = gold;
	}

	public long getSoldier() {
		return soldier;
	}

	public void setSoldier(long soldier) {
		this.soldier = soldier;
	}

	public long getExp() {
		return exp;
	}

	public void setExp(long exp) {
		this.exp = exp;
	}

	public int getDrum() {
		return drum;
	}

	public void setDrum(int drum) {
		this.drum = drum;
	}
	
	public short getDefaultHeadId() {
		return defaultHeadId;
	}

	public void setDefaultHeadId(short defaultHeadId) {
		this.defaultHeadId = defaultHeadId;
	}
	
	public short getHeadId() {
		return headId;
	}

	public void setHeadId(short headId) {
		this.headId = headId;
	}

	public short getDefaultClothId() {
		return defaultClothId;
	}

	public void setDefaultClothId(short defaultClothId) {
		this.defaultClothId = defaultClothId;
	}
	
	public short getClothId() {
		return clothId;
	}

	public void setClothId(short clothId) {
		this.clothId = clothId;
	}

	public int getRegTime() {
		return regTime;
	}

	public void setRegTime(int regTime) {
		this.regTime = regTime;
	}

	public long getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(long lastLogin) {
		this.lastLogin = lastLogin;
	}

	public long getLastLogout() {
		return lastLogout;
	}

	public void setLastLogout(long lastLogout) {
		this.lastLogout = lastLogout;
	}

//	public byte getWorship() {
//		return worship;
//	}
//
//	public void setWorship(byte worship) {
//		this.worship = worship;
//	}
//
//	public int getWorshipRefreshTime() {
//		return worshipRefreshTime;
//	}
//
//	public void setWorshipRefreshTime(int worshipRefreshTime) {
//		this.worshipRefreshTime = worshipRefreshTime;
//	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public long getFame() {
		return fame;
	}

	public void setFame(long fame) {
		this.fame = fame;
	}

//	public byte getPromotionFailed() {
//		return promotionFailed;
//	}
//
//	public void setPromotionFailed(byte promotionFailed) {
//		this.promotionFailed = promotionFailed;
//	}

	public int getRmb() {
		return rmb;
	}

	public void setRmb(int rmb) {
		this.rmb = rmb;
	}

	public int getTokenHash() {
		return tokenHash;
	}

	public void setTokenHash(int tokenHash) {
		this.tokenHash = tokenHash;
	}

//	public byte getMaidPromotionFailed() {
//		return maidPromotionFailed;
//	}
//
//	public void setMaidPromotionFailed(byte maidPromotionFailed) {
//		this.maidPromotionFailed = maidPromotionFailed;
//	}

	public long getPowers() {
		return powers[0] + powers[1] + powers[2] + powers[3];
	}
	public long getPowers(int index) {
		return powers[index];
	}
	
	public void setPowers(long[] powers) {
		this.powers = powers;
	}
	public void setPowers(int index, long value) {
		powers[index] = value;
	}
	
	public short getPowerRanking() {
		return powerRanking;
	}

	public void setPowerRanking(short powerRanking) {
		this.powerRanking = powerRanking;
	}
	
//	public short getMainTaskId() {
//		return mainTaskId;
//	}
//
//	public void setMainTaskId(short mainTaskId) {
//		this.mainTaskId = mainTaskId;
//	}
//
//	public long getSystemUnlockBit() {
//		return systemUnlockBit;
//	}
//
//	public void setSystemUnlockBit(long systemUnlockBit) {
//		this.systemUnlockBit = systemUnlockBit;
//	}

	public long getPublicMailIndex() {
		return publicMailIndex;
	}

	public void setPublicMailIndex(long publicMailIndex) {
		this.publicMailIndex = publicMailIndex;
	}

//	public int getGiftsRefreshTime() {
//		return giftsRefreshTime;
//	}
//
//	public void setGiftsRefreshTime(int giftsRefreshTime) {
//		this.giftsRefreshTime = giftsRefreshTime;
//	}
//
//	public int getReceiveGiftsTimes() {
//		return receiveGiftsTimes;
//	}
//
//	public void setReceiveGiftsTimes(int receiveGiftsTimes) {
//		this.receiveGiftsTimes = receiveGiftsTimes;
//	}
//
//	public int getRedTipsRefreshTimes() {
//		return redTipsRefreshTimes;
//	}
//
//	public void setRedTipsRefreshTimes(int redTipsRefreshTimes) {
//		this.redTipsRefreshTimes = redTipsRefreshTimes;
//	}
//
//	public long getGameGuideInfo() {
//		return gameGuideInfo;
//	}
//
//	public void setGameGuideInfo(long gameGuideInfo) {
//		this.gameGuideInfo = gameGuideInfo;
//	}
}
